package com.yuyou.fn.tms.vo;

import com.yuyou.fn.educational.entity.BaseGrade;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * Created by lzh on 2019/1/23.
 */
public class TmsGrade {
    @ApiModelProperty("年级id")
    private Long graId ;//年级id

    @ApiModelProperty("年级名称")
    private String graName ;//年级名称

    @ApiModelProperty("最后修改时间")
    private Date modifyTime ;//最后修改时间

    @ApiModelProperty("状态(0:使用,1:冻结)")
    private Integer status ;//状态(0:使用,1:冻结)

    @ApiModelProperty("是否删除(0否,1是)")
    private Integer isDelete ;//是否删除(0否,1是)

    public TmsGrade(BaseGrade baseGrade){
        this.setGraId(baseGrade.getGradeId());//年级id
        this.setGraName(baseGrade.getGradeName());//年级名称
        this.setModifyTime(baseGrade.getUpdateTime());//最后修改时间
        this.setStatus(0);//状态(0:使用,1:冻结)
        this.setIsDelete(0);//是否删除(0否,1是)
    }

    public Long getGraId() {
        return graId;
    }

    public void setGraId(Long graId) {
        this.graId = graId;
    }

    public String getGraName() {
        return graName;
    }

    public void setGraName(String graName) {
        this.graName = graName;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}
